#ifndef _KEYSCAN_H
#define _KEYSCAN_H

// H
#define R4 GPIO0_PC3
#define R3 GPIO0_PC2
#define R2 GPIO0_PC1
#define R1 GPIO0_PC0
// L
#define C1 GPIO0_PA5
#define C2 GPIO0_PA3
#define C3 GPIO0_PA1
#define C4 GPIO0_PA0

void key_Init();
int getKeyVal();
uint8_t getpasslenth(int pass);

#endif